home *** CD-ROM | disk | FTP | other *** search
/ Plug-In Power Pack for Netscape Communicator / Plug-In Power Pack for Netscape Communicator.iso / plugins / dataviews / include / dvparams.h < prev    next >
C/C++ Source or Header  |  1997-05-08  |  4KB  |  128 lines

  1. /*
  2. |    filename = dvparams.h
  3. |======================================================================
  4. |
  5. |             copyright (c) 1982, V.I. Corporation
  6. |
  7. |    dvparams.h
  8. |
  9. |    Alan C Morse      2 Sept 82
  10. |
  11. |=======================================================================
  12. |
  13. |    include-file description/function:
  14. |      Definitions of useful constants for DataViews.
  15. |
  16. |=======================================================================
  17.  
  18. |-----------------------------------------------------------------------
  19. |
  20. |    COMPILE CONTROL CONSTANTS
  21. |
  22. */
  23.  
  24. # define V_WITH_BUG_CHECKS    1
  25. # define V_WITHOUT_BUG_CHECKS 0
  26. # define V_COMPILE            V_WITH_BUG_CHECKS
  27.  
  28. # define PRINTADR(msg,adr)    PRINTF("%p %hl\n",msg,adr)
  29.  
  30. /*----------------------------------------------------------------------
  31. |
  32. |    SYSTEM CONSTANTS --
  33. |
  34. |        The largest numbers that will fit in each of the scalar types
  35. */
  36. # define V_UC_LARGEST  255
  37. # define V_S_LARGEST  32767
  38.  
  39. /*----------------------------------------------------------------------
  40. |
  41. |    DATA STRUCTURE CHECK FLAGS --
  42. |
  43. |        These constants are the values that go in the check
  44. |        flag fields of the DataViews data structures.  They
  45. |        indicate the type of data structure.
  46. */
  47. /*  Variable descriptor */
  48.  
  49. #if 0
  50.  
  51. #ifdef WINNT
  52. # define V_ID_VAR_DESC ((short) 1234)
  53. #else
  54. # define V_VAR_DESC ((short) 1234)
  55. #endif
  56.  
  57. #else
  58. # define V_VAR_DESC ((short) 1234)
  59. #endif
  60.  
  61. /*  Header for linked list of generic variable descriptors. */
  62. # define V_VDLIST   ((short) 2345)
  63.  
  64. /*  Header for linked list of hanging variable descriptors. */
  65. # define V_HVDLIST  ((short) 3456 )
  66.  
  67.  
  68. /*
  69. |  "Deleted" variable descriptor. (It couldn't actually be deleted,
  70. |  because some modifier type vd points to it.)
  71. */
  72. # define V_VDDELETED ((short) 4567)
  73.  
  74. /*  Data Group descriptor. */
  75. # define V_DATAGROUP ((short) 4321)
  76.  
  77. /*  Header for linked list of Data Group descriptors. */
  78. # define V_DGLIST    ((short) 6543)
  79.  
  80. /*  "Deleted" Data group descriptor.  (Couldn't actually be deleted, */
  81. /*  because it is modified by a Modifier type data group descriptor.) */
  82. # define V_DGDELETED ((short) 5432)
  83.  
  84.  
  85. /*----------------------------------------------------------------------
  86. |
  87. |     MISCELLANEOUS CONSTANTS --
  88. |
  89. |   Value returned by data access function to indicate that the datum's
  90. |     value is undefined.
  91. */
  92.  
  93. # define V_UNDEFINED  -1
  94.  
  95. /*
  96. |   Highest and lowest values that can be returned by the data access
  97. |     functions when they are returning valid normalized values.
  98. */
  99. # define V_HI_VALUE ((short) 32767)
  100. # define V_LO_VALUE ((short)  0)
  101.  
  102. /*
  103. |   Value returned by a routine when an error has occurred.  This is NOT
  104. |   an error code; it is just a reasonably innocuous value.  Something
  105. |   has to be returned when a routine abnormally exits.  Routines that
  106. |   include pieces of code that reference this parameter may temporarily
  107. |   modify its definition to something more appropriate (if necessary).
  108. |   This is deliberately not cast, since it may be needed as a pointer
  109. |   or a scalar; casting would generate compiler warnings.
  110. */
  111. # define V_ERR_RETURN_VALUE (0)
  112.  
  113. /*===============================================================
  114. |
  115. |    KEYBOARD state flags.  These flags represent the possible
  116. |    states of the keyboard as used by DataViews;
  117. |
  118. */
  119. # define V_KB_ORIGINAL     1 /* The original keyboard state */
  120. # define V_KB_CBREAK     2 /* CBREAK, NOECHO input */
  121.  
  122. /*===============================================================
  123. |
  124. |    Flag to access the LOG BIT of the VARACCESS field of the
  125. |    VAR_DESC data structure.
  126. */
  127. # define V_LOG_FIELD_BIT 0x10
  128.